package com.cjg.javaBasics;

public class diGui {
    public static void main(String[] args) {
        diGui diGui = new diGui();
        int f = diGui.f(3);
        System.out.println(f);
    }
    public int f(int n){
        if(n==1){
            return 1;
        }else return n*f(n-1);
    }
}
